﻿namespace DotRas
{
    using Microsoft.Win32.SafeHandles;
    using System;
    using System.Security.Permissions;

    [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)]
    public sealed class RasHandle : SafeHandleZeroOrMinusOneIsInvalid
    {
        public RasHandle() : base(false)
        {
        }

        internal RasHandle(IntPtr handle) : base(false)
        {
            base.SetHandle(handle);
        }

        protected override bool ReleaseHandle()
        {
            return true;
        }
    }
}

